package com.jvyou.app.ds.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author 橘柚
 * @since 2025/3/7 11:02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Configuration
@ConfigurationProperties(prefix = "app")
public class AppConfig {

    // 文件上传相关属性
    private File file = new File();

    // 短信相关属性
    private SMS sms = new SMS();

    /**
     * 文件相传相关属性
     */
    @Data
    public static class File {
        private String uploadPath;
    }

    /**
     * 短信相关属性
     */
    @Data
    public static class SMS {
        // 验证码过期时间
        private Integer codeExpireTime;
        // 验证码请求间隔时间
        private Integer codeIntervalTime;
    }

}
